package com.drdj.exam;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class NewActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.new_activity);

		Intent intent = getIntent();
		String textData = intent.getStringExtra("data");

		((TextView) findViewById(R.id.tvData)).setText(textData);

		((Button) findViewById(R.id.btnFinishActivity)).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}
}
